import { Injectable } from '@nestjs/common';
import { join } from 'path';

@Injectable()
export class ConfigService {
  async getAuthConfig() {
    return new Promise<{ model: string; policy: string }>((resolve, reject) => {
      setTimeout(() => {
        return resolve(
        {
          model: '/usr/src/app/src/casbin_conf/model.conf',
          policy:  '/usr/src/app/src/casbin_conf/policy.csv',
        });
      }, 200);
    });
  }
}